package cn.tedu.submarine_1;

import javax.swing.*;

public class MineSubmarine extends SeaObject{
    public MineSubmarine() {
        super(63,19);
    }

    public void move(){
        setX(getX()+getSpeed());
    }

    @Override
    public ImageIcon getImage() {
        return Images.minesubm;
    }
    public Mine shootMine(){
        return new Mine(this.getX()+this.getWidth(),this.getY()-11);
    }
}
